package com.sxhalo.manage.map;

/**
 * TaskDependenciesId entity. @author MyEclipse Persistence Tools
 */

public class TaskDependenciesId implements java.io.Serializable {

	// Fields

	private Integer dependenciesTaskId;
	private Integer dependenciesReqTaskId;

	// Constructors

	/** default constructor */
	public TaskDependenciesId() {
	}

	/** full constructor */
	public TaskDependenciesId(Integer dependenciesTaskId,
			Integer dependenciesReqTaskId) {
		this.dependenciesTaskId = dependenciesTaskId;
		this.dependenciesReqTaskId = dependenciesReqTaskId;
	}

	// Property accessors

	public Integer getDependenciesTaskId() {
		return this.dependenciesTaskId;
	}

	public void setDependenciesTaskId(Integer dependenciesTaskId) {
		this.dependenciesTaskId = dependenciesTaskId;
	}

	public Integer getDependenciesReqTaskId() {
		return this.dependenciesReqTaskId;
	}

	public void setDependenciesReqTaskId(Integer dependenciesReqTaskId) {
		this.dependenciesReqTaskId = dependenciesReqTaskId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TaskDependenciesId))
			return false;
		TaskDependenciesId castOther = (TaskDependenciesId) other;

		return ((this.getDependenciesTaskId() == castOther
				.getDependenciesTaskId()) || (this.getDependenciesTaskId() != null
				&& castOther.getDependenciesTaskId() != null && this
				.getDependenciesTaskId().equals(
						castOther.getDependenciesTaskId())))
				&& ((this.getDependenciesReqTaskId() == castOther
						.getDependenciesReqTaskId()) || (this
						.getDependenciesReqTaskId() != null
						&& castOther.getDependenciesReqTaskId() != null && this
						.getDependenciesReqTaskId().equals(
								castOther.getDependenciesReqTaskId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getDependenciesTaskId() == null ? 0 : this
						.getDependenciesTaskId().hashCode());
		result = 37
				* result
				+ (getDependenciesReqTaskId() == null ? 0 : this
						.getDependenciesReqTaskId().hashCode());
		return result;
	}

}